export function SetToGlobalThis(key: string, obj: unknown): void {
  globalThis[key] = obj;
}

export function GetFromGlobalThis(key: string) {
  return globalThis[key];
}

export function InitGlobalThisContext(data,PlayerPrefs,TuanjieInternet) {
  globalThis.context = data;
  globalThis.context.PlayerPrefs = PlayerPrefs;
  globalThis.context.TuanjieInternet = TuanjieInternet;
}

export function SetToGlobalThisContext(key, value) {
  globalThis.context[key] = value;
}

export function GetFromGlobalThisContext(key) {
  return globalThis.context[key];
}